using System.Configuration;

namespace WoltersKluwer.SPChainGang.Core.Configuration
{
	public class TemplatesConfigurationSection : ConfigurationSection
	{
	    ConfigurationProperty TemplatesProperty = new ConfigurationProperty(
	        null, typeof(TemplateElementCollection), null, ConfigurationPropertyOptions.IsDefaultCollection);

        [ConfigurationProperty("", Options = ConfigurationPropertyOptions.IsDefaultCollection)]
        [ConfigurationCollection(typeof(TemplateElementCollection), CollectionType = ConfigurationElementCollectionType.BasicMap, AddItemName = "template")]
        public TemplateElementCollection Templates
		{
			get
			{
			    return (TemplateElementCollection)base[TemplatesProperty];
			}
		}
	}
}
